﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.Model.Comment>" %>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<%@ Import Namespace="ChoViet.Lib.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=string.IsNullOrEmpty(Model.Title) ? "Bình luận ko có tiêu đề" : Model.Title%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <%if (ViewData["MessageInfo"] == null)
      { %>
    <table class="admintable" width="100%">
        <tbody>
            <%if (Model.User != null)
              {%>
              <tr>
                <td class="key">
                    Người bình luận
                </td>
                <td>
                    <img width="60" height="40" src="<%=LinkUtils.AvataOrDefault(Model.User.AvataPath) %>" style="float:left"/>
                    <%=Html.Encode(Model.User.UserName)%><br />
                    <%=Html.Encode(Model.User.Phone)%>
                </td>
              </tr>
            <%} %>
            <tr>
                <td class="key">
                    Email
                </td>
                <td>
                    <%=Html.Encode(Model.Email)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                    Tiêu đề
                </td>
                <td>
                    <%=Html.Encode(Model.Title)%>
                </td>
            </tr>
            <tr>
                <td class="key">
                   Nội dung
                </td>
                <td>
                <%=Model.Content %>
                </td>
            </tr>
        </tbody>
    </table>
    <%} %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
<td>
        <%= Html.Toolbar("Quay về", "/Comment/IndexCms", "back") %>
</td>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
Chi tiết bình luận:<font color="red"><%=Model.ID%></font>
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
